#
# HoI - Latvian Events
#
#		written by Quetzalcoatl
#

### Umsiedlung
###################################
event = {
	id = 91363
	random = no
	country = LAT

	trigger = {
		event = 91361
	}

	style = 0
	name = "EVT_91363_NAME"
	desc = "EVT_91363_DESC"
	picture = "Umsiedlung"

	date = { day = 6 month = november year = 1939 }
	offset = 1
	deathdate = { day = 30 month = december year = 1939 }

	action_a = {
		name = "ACTIONNAME91363A"
		command = { type = manpowerpool value = -3 }  #ez mg finomtsra szorulhat, hozzvetleges rtk
		command = { type = relation which = GER value = -5 }
		command = { type = sleepleader which = 19055 }  #Keizerlings
		ai_chance = 100
	}
	#action_b = {
	#	name = "ACTIONNAME91363B"
	#	command = { type = relation which = GER value = -100 }
	#	command = { type = dissent value = 5 }
	#	ai_chance = 0
	#}
}

### Aizsargi
###################################
event = {
	id = 91370
	random = no
	country = LAT

	trigger = {
		NOT = {
			OR = {
				ideology = stalinist
				ideology = leninist
				ideology = left_wing_radical
				ideology = nazi
			}
		}
		atwar = SOV
	}

	style = 0
	name = "EVT_91370_NAME"
	desc = "EVT_91370_DESC"
	picture = "Reinforcements"

	date = { day = 1 month = january year = 1936 }
	offset = 3
	deathdate = { day = 30 month = december year = 1940 }

	action_a = {
		name = "ACTIONNAME91370A"
		command = { type = activate_division which = 24500 value = 101 where = 197 when = 0 }
		command = { type = activate_division which = 24500 value = 102 where = 198 when = 0 }
		command = { type = activate_division which = 24500 value = 103 where = 202 when = 0 }
		command = { type = activate_division which = 24500 value = 104 where = 203 when = 0 }
		command = { type = activate_division which = 24500 value = 105 where = 204 when = 0 }
		command = { type = activate_division which = 24500 value = 106 where = 205 when = 0 }
		ai_chance = 90
	}
	action_b = {
		name = "ACTIONNAME91370B"
		command = { type = remove_division which = 24500 value = 101 }
		command = { type = remove_division which = 24500 value = 102 }
		command = { type = remove_division which = 24500 value = 103 }
		command = { type = remove_division which = 24500 value = 104 }
		command = { type = remove_division which = 24500 value = 105 }
		command = { type = remove_division which = 24500 value = 106 }
		ai_chance = 10
	}
}

### Kegums erm
###################################
event = {
	id = 91393
	random = no
	country = LAT
	
	trigger = {
		headofgovernment = 27002
		money = 2100
		metal = 20
		owned = { province = 197 data = LAT }
	}
	
	name = "EVT_91393_NAME"
	desc = "EVT_91393_DESC"
	style = 2
	picture = "economic"

	date = { day = 8 month = september year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1936 }

	action_a = {
		name = "ACTIONNAME91393A"
		ai_chance = 98
        command = { type = money value = -2100 }
		command = { type = metalpool value = -20 }
		command = { type = local_setflag which = lat_kegums }
	}
	action_b = {
		name = "ACTIONNAME91393B"
		ai_chance = 2
		command = { type = dissent value = 1 }
	}
}

event = {
	id = 91394
	random = no
	country = LAT
	
	trigger = {
		local_flag = lat_kegums
		owned = { province = 197 data = LAT }
	}
	
	name = "EVT_91394_NAME"
	desc = "EVT_91394_DESC"
	style = 2
	picture = "economic"

	date = { day = 9 month = november year = 1939 }
	offset = 1
	deathdate = { day = 30 month = november year = 1939 }

	action = {
		name = "ACTIONNAME91394A"
		ai_chance = 100
		command = { type = add_prov_resource which = 197 value = 5 where = energy }
		command = { type = construct which = ic where = 197 value = 1 }
#		command = { type = construct which = infrastructure where = 197 value = 10 }
		command = { type = local_clrflag which = lat_kegums }
	}
}
